//public class Test3 {
//    public static void main(String[] args) {
////        int[] array = new int[10];
////        System.out.println(array[10]);
//
////        throw new IOException("");
////        Class.forName("java.lang.Scanner");
//
//        int[] array = getIntegerArray();
//        System.out.println(array[999]);
//    }
//
//    private static int[] getIntegerArray() {
//        return null;
//    }
//}

public class Test3 extends ArithmeticException {
    public Test3() {
        super();
    }

    public Test3(String s) {
        super(s);
    }

}

class Test31 {
    public static void main(String[] args) {
        try {
            throw new ArithmeticException();
        } catch (Test3 e) {
            System.out.println("Test3");
        } catch (ArithmeticException e) {
            System.out.println("ArithmeticException");
        }
    }
}